package com.wowo.c3p0;

import com.mchange.v2.c3p0.jboss.C3P0PooledDataSource;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Date;

public class C3p0Util {
    DataSource dataSource;

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }
    public Connection getDBConntection() throws SQLException {
        return dataSource.getConnection();
    }
}
